package com.lanou3g.k12.mapper;

import com.lanou3g.k12.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarouselMapper {
    //初始化 查询返回所有结果
    List<Carousel> findAll();

    List<Carousel> findById(Integer integer);

    Carousel selById(Integer id);

    //根据id修改 轮播图
    int upById(@Param("ids") Integer id,@Param("carousel2") Carousel carousel2);

    int delById(Integer id);

    int addCarousel(Carousel carousel);

   void updateAferCarousel(Integer sort);

    Carousel findBySort(Integer sort);

    Coupon couponById(Long cpId);

    List<Carousel> showBySort();

    int setUserCourse(CourseUser courseUser);


}
